package top.zsyle.sycc.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import top.zsyle.sycc.domain.Login;
import top.zsyle.sycc.fallback.LoginServiceFallbackFactory;
import top.zsyle.sycc.result.JsonResult;

@FeignClient(value = "service-uaa",path = "login",contextId = "loginService",fallbackFactory = LoginServiceFallbackFactory.class )
public interface LoginService {

    @RequestMapping(value="/save",method= RequestMethod.POST)
    JsonResult saveOrUpdate(@RequestBody Login login);
}
